<?php 
class CommentAction extends HomeAction{
	public function add(){
		if($_POST){
			$Comment				= M('content');
			$data['acid']			= $_POST['acid'];
			$data['uid']			= Session::get('uid');
			$data['create_time']	= time();
			$data['content']		= $_POST['content'];
			$Comment->add($data);
			$this->assign('jumpUrl',$_SERVER['HTTP_REFERER']);
			$this->success('修改成功');
		}
	}
}